package com.example.industry.service;

import com.example.industry.entity.Project;
import com.example.industry.entity.User;
import com.example.industry.enums.Roles;
import jakarta.servlet.http.HttpSession;

import java.util.List;

public interface UserService
{
    User findUserById(Integer userId);

    User findUserByEmail(String email);

    boolean register(String username, String email, String password);

    boolean login(String email, String password, HttpSession session);

    void logout(HttpSession session);

    List<Project> findProjectsByUserIdAndRole(Integer userId, Roles role);
}
